const path = require('path');
const nodeExternals = require('webpack-node-externals')
module.exports = {
    mode: "development",
    target: "node",
    entry: "./src/index.js",
    output: {
        filename: "bundle.js",
        path: path.resolve( __dirname , "bundle")
    },
    externals: [
        nodeExternals()
    ],
    module: {
        rules: [
            {
                test: /\.js?$/,
                loader: 'babel-loader',
                exclude: /node_modules/
            }
        ]
    }
}
